package com.hgd.security.evp.biz.rest;

import com.alibaba.fastjson.JSONObject;
import com.hgd.security.evp.biz.biz.InspectionSituationBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("inspectionSituation")
@Api(tags = "监控状况处理")
public class InspectionSituationController {

    @Autowired
    private InspectionSituationBiz inspectionSituationBiz;

    @GetMapping("/lastestSituation")
    @ApiOperation("获取最新监控数据")
    public JSONObject lastestSituation(){
        return inspectionSituationBiz.lastestSituation();
    }
}